package com.glh.javalogic.chapter4.concept;

/**
 * author : 高磊华
 * e-mail : 984992087@qq.com
 * time   : 2018\6\9
 * desc   : 图形类(也是圆、直线等类的父类)
 */

public class Shape {

	private static final String DEFAULT_COLOR = "black";
	
	private String color;
	
	public Shape() {
		this(DEFAULT_COLOR);
	}

	public Shape(String color) {
		this.color = color;
	}
	
	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}
	
	public void draw(){
		System.out.println("draw shape");
	}
}
